FROM openjdk:8u232-jre

ADD *.jar app.jar
EXPOSE 8888

VOLUME ["/disk","/logs"]
#设置时区
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom","-jar", "/app.jar","--spring.profiles.active=prod"]
